﻿using System;
using System.Collections.Generic;
using System.Text;
using UtilZ.Dotnet.Ex.Communication.Base;

namespace UtilZ.Dotnet.Ex.Communication.Ports
{
    /// <summary>
    /// 连接状态改变事件参数
    /// </summary>
    public class SerialPortConnectionChangedArgs : ConnectionChangedArgsAbs
    {
        /// <summary>
        /// 串口名称
        /// </summary>
        public string SerialPortName { get; private set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="status">状态</param>
        /// <param name="comName">串口名称</param>
        public SerialPortConnectionChangedArgs(ConnectionStatus status, string comName)
            : base(status)
        {
            this.SerialPortName = comName;
        }
    }
}
